#ifndef SEMAPHOREK_H
#define SEMAPHOREK_H



#include <sys/ipc.h>
#include <sys/sem.h>

class Semaphore
{
        static char next_ipc_id_token;

	int id;
	
	public:
	
	Semaphore(int initval);

	~Semaphore();

	int P();

	int V();

};

#endif
